import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import { Tsrv } from '@/services';
import './components/init';
import dataV from '@jiaminghi/data-view'

Vue.config.productionTip = false;

const elementResizeDetectorMaker: any = require('element-resize-detector');
// import elementResizeDetectorMaker from 'element-resize-detector'

Vue.prototype.$utils = Tsrv.utils;
Vue.prototype.$bus = new Vue(); // 注册总线
// Vue.prototype.$mbus = new Vue(); // 注册magicbox总线
Vue.prototype.$elementDetecter = elementResizeDetectorMaker;
Vue.prototype.$srv = Tsrv; // 注册全局服务方便调试
Vue.use(ViewUI);
Vue.use(dataV);


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app'); 